package com.kaikeba.t31.controller;

import com.kaikeba.t31.admin.po.Menu;
import com.kaikeba.t31.admin.po.AdminRoleMenu;
import com.kaikeba.t31.core.controller.BaseController;
import com.kaikeba.t31.service.AdminRoleMenuService;
import com.kaikeba.t31.service.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yumingzhi
 * @since 2021-11-15
 */
@RestController
@RequestMapping("/adminRoleMenu")
public class AdminRoleMenuController extends BaseController<AdminRoleMenuService, AdminRoleMenu> {

    @Autowired
    private AdminRoleMenuService adminRoleMenuService;

    @Autowired
    private IMenuService adminMenuService;
    @RequestMapping(value = "/permission/list", method = {RequestMethod.POST, RequestMethod.GET})
    public List<Menu> permissionlist(Menu entity) {
        List<Menu> list = adminMenuService.list(entity);
        return list;
    }
}

